package edu.guigu.networkdemomvvm.nonsingle;

import android.widget.ImageView;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;
import androidx.databinding.BindingAdapter;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.bumptech.glide.request.RequestOptions;

import edu.guigu.networkdemomvvm.BR;

public class User extends BaseObservable {

    String login;
    @Bindable
    String name;
    @Bindable
    String avatar_url;
    @Bindable
    String created_at;
    @Bindable
    String updated_at;
    @Bindable
    String url;
    @Bindable
    String repos_url;

    public String getLogin() {
        return login;
    }

    @Bindable
    public void setLogin(String login) {
        this.login = login;
        notifyPropertyChanged(BR.login);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    public String getAvatar_url() {
        return avatar_url;
    }

    public void setAvatar_url(String avatar_url) {
        this.avatar_url = avatar_url;
        notifyPropertyChanged(BR.avatar_url);
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
        notifyPropertyChanged(BR.created_at);
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
        notifyPropertyChanged(BR.updated_at);
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
        notifyPropertyChanged(BR.url);
    }

    public String getRepos_url() {
        return repos_url;
    }

    public void setRepos_url(String repos_url) {
        this.repos_url = repos_url;
        notifyPropertyChanged(BR.repos_url);
    }
}
